runtime.g.atomicstatus (field)
12 uses
runtime (current package)
coro.go#L155: if !gp.atomicstatus.CompareAndSwap(_Grunning, _Gwaiting) {
coro.go#L223: if !gnext.atomicstatus.CompareAndSwap(_Gwaiting, _Grunning) {
proc.go#L1132: return gp.atomicstatus.Load()
proc.go#L1154: success = gp.atomicstatus.CompareAndSwap(oldval, newval)
proc.go#L1174: r := gp.atomicstatus.CompareAndSwap(oldval, newval)
proc.go#L1215: for i := 0; !gp.atomicstatus.CompareAndSwap(oldval, newval); i++ {
proc.go#L1216: if oldval == _Gwaiting && gp.atomicstatus.Load() == _Grunnable {
proc.go#L1227: for x := 0; x < 10 && gp.atomicstatus.Load() != oldval; x++ {
proc.go#L1331: if gp.atomicstatus.CompareAndSwap(oldstatus, _Gcopystack) {
proc.go#L1346: for !gp.atomicstatus.CompareAndSwap(_Grunning, _Gscan|_Gpreempted) {
proc.go#L1358: return gp.atomicstatus.CompareAndSwap(_Gpreempted, _Gwaiting)
runtime2.go#L456: atomicstatus atomic.Uint32
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |